<template>
  <div >
{{msg}}
<button @click="handleNodeClick">点击</button>
  </div>
</template>

<script lang="ts" setup>
import {reactive,toRefs,defineComponent, ref} from "vue"
const props = defineProps({
  msg: String
})
const num = ref(999);
const emits = defineEmits(['handleNodeClick','gatewayData'])
const handleNodeClick = (e) => {
console.log("子组件哈哈");
 emits('gatewayData',num.value)
}
</script>

<style lang="scss" scoped>
</style>
